/*
 * File:   path.cpp
 * Author: dolphinigle
 *
 * Created on December 1, 2011, 3:50 PM
 */

#include "path.h"

#include <string>
#include <cassert>

Path::Path(const string& raw_path) {
  // Input must not be empty.
  assert(raw_path.size() > 0);

  if (raw_path[0] == '@') {
    is_virtual_ = false;
    path_ = raw_path.substr(1, raw_path.size());
  } else {
    is_virtual_ = true;
    path_ = raw_path;
  }
}
